<%@include file="/pages/common/taglib.jsp"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<%@page import="com.wef.system.entity.domain.ModuleDomain"%>
<%@page import="com.wef.system.entity.domain.MenuGroupDomain"%>
<%@page import="com.wef.system.entity.domain.MenuItemDomain"%>
<%@page import="com.wef.system.entity.domain.ViewButtonDomain"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
	<head>
		<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/ext-2.2.1/css_lib.jsp"%>
		<%@include file="/scripts/widgets/gfa4ext/css_lib.jsp"%>
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp"%>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/widgets/ext-2.2.1/js_lib.jsp"%>
		<%@include file="/scripts/widgets/gfa4ext/js_lib.jsp"%>
		<script type="text/javascript" src="<%= request.getRequestURI().replace(".jsp",".js") %>"></script>
		<script type="text/javascript">
			var localEditData = {};
		
			/**加载title表信息**/
			function onRenderModuleTitleGrid(clickNodeId){
				var grid=Ext.getCmp("moduleTitleGrid");
				grid.whereCondition = "sys_module_Id=  \'"+clickNodeId+"\'";
				grid.store.load();
			}
			
			function onRenderGroupTitleGrid(clickNodeId){
				var grid=Ext.getCmp("menuGroupTitleGrid");
				grid.whereCondition = "sys_menu_Group_Id=  \'"+clickNodeId+"\'";
				grid.store.load();
			}
			
			function onRenderItemTitleGrid(clickNodeId){
				var grid=Ext.getCmp("menuItemTitleGrid");
				grid.whereCondition = "sys_menu_Item_Id=  \'"+clickNodeId+"\'";
				grid.store.load();
			}
			/**end 加载title表信息**/
			
			
			/** title验证  **/
			function validateTitles(gridId){
				var titles = getTitles(gridId)
				
				if(titles == null || titles == "")
				{
					return true;
				}
		
				for(var i = 0;i < titles.length; i++){
					if(titles[i].lang == null || $.trim(titles[i].lang) == "" 
						|| titles[i].title == null || $.trim(titles[i].title) == "")
					{
						alert("标题或语言不能为空！");
						return false;
					}
				}
		
				return true;
			}
			
			/**保存前验证**/
			function beforeSaveFuncValidateModuleEditForm(){
				var flg = validateModuleEditForm(document.getElementById('moduleEditForm'));
				var viewId = $("#moduleCode").val();
				var isCont = viewId.indexOf(' ');
				if(isCont != -1)
				{
					alert("模块代码不能有空格！");
					return false;
				}
				if(!flg || !validateTitles("moduleTitleGrid")) {
					return false;
				}
			}
			function beforeSaveFuncValidateGroupEditForm(){
				var flg = validateEditGroupForm(document.getElementById('editGroupForm'));
				if(!flg || !validateTitles("menuGroupTitleGrid")) {
					return false;
				}
			}
			function beforeSaveFuncValidateMenuEditForm(){
				var flg = validateMenuItemForm(document.getElementById('menuItemForm'));
				var viewId = $("#viewId").val();
				var isCont = viewId.indexOf(' ');
				if(isCont != -1)
				{
					alert("视图ID不能有空格！");
					return false;
				}
				
				if(!flg || !validateTitles("menuItemTitleGrid")) {
					return false;
				}
		
				
			}
			function beforeSaveFuncValidateViewButtonEditForm(){
				var flg = validateEditViewButtonForm(document.getElementById('editViewButtonForm'));
				if(!flg) {
					return false;
				}
			}
			/**end 保存前验证**/
			
			function nodeClick(clicknum, data){
				$('#moduleEditId').show();
				changeTab(clicknum);
				changeNewTab(clicknum);
				if(clicknum == 1){
					onRenderModuleTitleGrid(data.moduleId);
					setEditForm(data, 'moduleEditForm');
					$("#hiddenPareModuleId").val(data.moduleId);
				}
				if(clicknum == 2){
					onRenderGroupTitleGrid(data.menuGroupId);
					setEditForm(data, 'editGroupForm');	
					$("#hiddenPareModuleId").val(data.moduleId);
					$("#hiddenPareMenuGroupId").val(data.menuGroupId);
				}
				if(clicknum == 3){
					onRenderItemTitleGrid(data.menuItemId);
					setEditForm(data, 'menuItemForm');
					$("#hiddenPareModuleId").val(data.moduleId);
					$("#hiddenPareMenuGroupId").val(data.menuGroupId);
					$("#hiddenPareMenuItemId").val(data.menuItemId);	
				}
				if(clicknum == 4){	
					setEditForm(data, 'editViewButtonForm');
			
					$("#hiddenPareModuleId").val(data.moduleId);
					$("#hiddenPareMenuGroupId").val(data.menuGroupId);
					$("#hiddenPareMenuItemId").val(data.menuItemId);
				}
			}
			function setEditForm(data, formId){
				FormUtils.convertSimpleObject2Form(data, formId);
				$("input[type=text]").each(function(){
					 if($(this).val()=="null"){
						 $(this).val("");
					  }
				});
			}
		
			function saveViewButtonAction(doMethod){
				if(beforeSaveFuncValidateViewButtonEditForm() == false){
					return false;
				}
				viewButtonAction(doMethod);
			}
			function viewButtonAction(doMethod){
				var obj = {};
				var parentId = $("#hiddenPareMenuItemId").val();
				obj = FormUtils.convertSimpleForm2Object('editViewButtonForm',obj);
		
				if(obj.viewButtonId!=null && obj.viewButtonId.length>0){
					obj.menuItem = {};
					obj.menuItem.menuItemId = obj.menuItemId;
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_MODIFIED;
					if(doMethod == "dele"){
						obj.menuItem = null;
						obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_DELETED;
					}
				}else{
					obj.menuItem = {};
					obj.menuItem.menuItemId = obj.menuItemId;
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_ADDED;
					if(doMethod == "dele"){		
						alert("不能删除");
						return false;
					}
				}
			
				localEditData = obj;
				localEditData.authType = 'ViewButton';
				localEditData._text = obj.btnTitleKey; 
				localEditData._iconCls = 'viewButton';
				localEditData.clicknum = 4;
				AuthFunctionService.saveOrUpdateViewButton(obj, commonCallBack);	
			}
			
			function saveMenuItemAction(doMethod){
				if(beforeSaveFuncValidateMenuEditForm() == false){
					return false;
				}
				menuItemAction(doMethod);
			}
			
			function menuItemAction(doMethod){
				var obj = {};
				var parentId = $("#hiddenPareMenuGroupId").val();
				obj = FormUtils.convertSimpleForm2Object('menuItemForm',obj);
				if(obj.menuItemId!=null && obj.menuItemId.length>0){
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_MODIFIED;
					if(doMethod == "dele"){
						obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_DELETED;
					}
				}else{
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_ADDED;
				if(doMethod == "dele"){		
						alert("不能删除");
						return false;
					}
				}
				localEditData = obj;
				localEditData.authType = 'MenuItem';
				localEditData._iconCls = 'menuItem';
				localEditData.clicknum = 3;
				obj.menuItemTitles = getTitles("menuItemTitleGrid");
				localEditData._text = Gfa.CommonUtil.getTitle(obj.menuItemTitles);
				AuthFunctionService.saveOrUpdateMenuItem(obj, parentId, commonCallBack);		
			}
			
			function saveMenuGroupAction(doMethod){
				if(beforeSaveFuncValidateGroupEditForm() == false){
					return false;
				}
				menuGroupAction(doMethod);
			}
			
			function menuGroupAction(doMethod){
				var obj = {};
				var parentId = $("#hiddenPareModuleId").val();
				obj = FormUtils.convertSimpleForm2Object('editGroupForm',obj);
				if(obj.menuGroupId!=null && obj.menuGroupId.length>0){
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_MODIFIED;
					if(doMethod == "dele"){
						obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_DELETED;
					}
				}else{
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_ADDED;
					if(doMethod == "dele"){		
						alert("不能删除");
						return false;
					}
				}
				localEditData = obj;
				localEditData.authType = 'MenuGroup'; 
				localEditData._iconCls = 'menuGroup';
				localEditData.clicknum = 2;
				obj.menuGroupTitles = getTitles("menuGroupTitleGrid");
				localEditData._text = Gfa.CommonUtil.getTitle(obj.menuGroupTitles);
				AuthFunctionService.saveOrUpdateMenuGroup(obj, parentId, commonCallBack);
			}
			
			function saveModuleAction(doMethod){
				if(beforeSaveFuncValidateModuleEditForm() == false){
					return false;
				}
				moduleAction(doMethod);
			}
			
			function getTitles(gridId){
				var title;
				var grid=Ext.getCmp(gridId);
				var objs = []; 
				var items = grid.store.data.items;
				for(var i = 0;i < items.length; i++){
					objs.push(items[i].data);
				}	
				return objs;
			}
			
			function moduleAction(doMethod){
				var obj = {};
				obj = FormUtils.convertSimpleForm2Object('moduleEditForm',obj);
				if(obj.moduleId!=null && obj.moduleId.length>0){
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_MODIFIED;
					if(doMethod == "dele"){
						obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_DELETED;
					}
				}else{
					obj.rowStatus = Gfa.GlobalConstant.ROWSTATUS_ADDED;
					if(doMethod == "dele"){			
						alert("不能删除");
						return false;
					}
				}
				localEditData = obj;
				localEditData.authType = 'Module';
				localEditData._text = 'moduleTitleKey'; 
				localEditData._iconCls = 'module';
				localEditData.clicknum = 1;
				obj.moduleTitles = getTitles("moduleTitleGrid");
				localEditData._text = Gfa.CommonUtil.getTitle(obj.moduleTitles);
				AuthFunctionService.saveOrUpdateModule(obj,commonCallBack);
			}
			
			function commonCallBack(result){
				var clicknum = localEditData.clicknum;
				if (localEditData.rowStatus == Gfa.GlobalConstant.ROWSTATUS_ADDED) {
					var parentNode = getParentNode(localEditData.authType);
					var newNode = new Ext.tree.TreeNode({
						text : Gfa.CommonUtil.matchLanguage(localEditData._text),
						iconCls : localEditData._iconCls
					});
			    	newNode.authType = localEditData.authType;
			    	newNode.authData = result;
			    	parentNode.appendChild(newNode);
			    	authTree.fireEvent('click', newNode);
			    	localEditData = result;
			    	alert("新增成功");
				} else if (localEditData.rowStatus == Gfa.GlobalConstant.ROWSTATUS_MODIFIED) {
					var selNode = authTree.selModel.selNode;
					selNode.setText(Gfa.CommonUtil.matchLanguage(localEditData._text));
					selNode.authData = result;
					localEditData = result;
					alert("更新成功");
				}else{
					var selNode = authTree.selModel.selNode;
					selNode.remove();
					alert("删除成功");
					$('#moduleEditId').hide();
				}
			
				flushPage(clicknum, localEditData);
			}
			
			function flushPage(clicknum, data){
				if(clicknum == 1){
					onRenderModuleTitleGrid(data.moduleId);
					setEditForm(data, 'moduleEditForm');
				}
				if(clicknum == 2){
					onRenderGroupTitleGrid(data.menuGroupId);
					setEditForm(data, 'editGroupForm');	
				}
				if(clicknum == 3){
					onRenderItemTitleGrid(data.menuItemId);
					setEditForm(data, 'menuItemForm');
				}
				if(clicknum == 4){	
					setEditForm(data, 'editViewButtonForm');
				}
			}
			
			function clickNewTab(n, form, gridId, hidParentId){
				var parentId;
				for (var i = 1; i <= 4; i++) {
					document.getElementById("Tab" + i).className = "TabDown";
					document.getElementById("TabBox" + i).className = "TabBoxHidden";
				}
				document.getElementById("TabBox" + n).className = "TabBoxShow";
				if(gridId != null && gridId != ""){
					var grid=Ext.getCmp(gridId);
					grid.store.removeAll()
				}
				/**
				 * 保存父节点的隐藏字段不要清除
				 */
				if(hidParentId != ""){
					parentId = $("#" + hidParentId).val();
				}
				FormUtils.clearForm(form);
				if(hidParentId != ""){
					$("#" + hidParentId).val(parentId);	
				}
			}
			
			function changeNewTab(n){
				for (var i = 1; i <= 4; i++) {
					document.getElementById("newTab" + i).className = "TabDown";
					document.getElementById("newTab" + i).disabled = true;
				}
			for (var i = 1; i <= n+1; i++){
					if(i > 4){
						break;
					}
					document.getElementById("newTab" + i).className = "TabUp";
					document.getElementById("newTab" + i).disabled = false;
				}
			}
			
			function changeTab(n) {
				for (var i = 1; i <= 4; i++) {
					document.getElementById("Tab" + i).className = "TabDown";
					document.getElementById("TabBox" + i).className = "TabBoxHidden";
				}
				document.getElementById("Tab" + n).className = "TabUp";
				document.getElementById("TabBox" + n).className = "TabBoxShow";
			}
			
			Ext.onReady(function(){
				authTree.render('authFunctionManagerTree');
			});
		</script>
	</head>
	<body>
		<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="1">
			<tr>
				<td width="182" height="50%">
					<div id="authFunctionManagerTree" style="width: 90%; height: 90%"></div>
				</td>
				<td width="1">&nbsp;</td>
				<td valign="top">
					<div class="ModuleEdit" id="moduleEditId" style="display: none">
						<div class="ModuleEditBorder">
						<div class="ModuleEditButton"></div>
						<div class="Line"></div>
							<div id="editFormDiv">
								<!---------------------- TAB 页标题 ---------------------->
								<div class="TabTitle">
									<table>
										<tr>
											<td> 
											    <div class="TabUp" onclick="clickNewTab(1, 'moduleEditForm', 'moduleTitleGrid', '')"  id="newTab1"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_ADDMODULE %>" /></div>
											    <div class="TabUp" onclick="clickNewTab(2, 'editGroupForm', 'menuGroupTitleGrid',  'hiddenPareModuleId')" id="newTab2"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_ADDMENUGROUP %>" /></div>
											    <div class="TabUp" onclick="clickNewTab(3, 'menuItemForm', 'menuItemTitleGrid', 'hiddenPareMenuGroupId')" id="newTab3"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_ADDMENUITEM %>" /></div>
											    <div class="TabUp" onclick="clickNewTab(4, 'editViewButtonForm', '', 'hiddenPareMenuItemId')" id="newTab4"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_ADDVIEWBUTTON %>" /></div> 
											</td>
										</tr>
										<tr>
											<td>
												<div class="TabUp"   id="Tab1"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_MODULE %>" /></div>
											    <div class="TabDown" id="Tab2"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_MENUGROUP %>" /></div>
											    <div class="TabDown" id="Tab3"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_MENUITEM %>" /></div>
											    <div class="TabDown" id="Tab4"><g:label showColon="false" text="<%= CommonMessageDomain.BUTTON_VIEWBUTTON %>" /></div>
											</td>
										</tr>
									</table>
								</div>
								<!---------------------- TAB 页标题----------------------> 
								<div class="ModuleSearchTitle"></div>
								<!---------------------- TAB 1 begin---------------------->
								<div id="TabBox1" class="TabBoxShow">
									<!--信息显示模块-->
									<div class="ModuleGrid">
										<div class="ModuleGridBorder">
										<!-- 表格内容开始 -->
										<div id="moduleTitleGrid"></div>
										<!-- 表格内容 结束 --></div>
										<div class="ModuleEditButton">
											<g:button styleId="btnModuleNew" styleClass="new" type="button" text="<%= CommonMessageDomain.BUTTON_NEW %>" /> 
											<g:button styleId="btnModuleCancel" styleClass="calcel" type="button" text="<%=CommonMessageDomain.BUTTON_CANCEL  %>" /> 
											<g:button styleId="btnModuleDelete" styleClass="delete" type="button" text="<%= CommonMessageDomain.BUTTON_DELETE %>" />
										</div>
									</div>
									<!--信息显示模块--> 
									<!-- 编辑区域 -->
									<div class="ModuleEdit">
										<div class="ModuleEditBorder">
											<form id="moduleEditForm" onsubmit="return false;"><input type="hidden" id="moduleHiddenId" name="moduleId"> <input type="hidden" id="recordVersionHidden" name="recordVersion">
												<div class="Line"></div>
												<table width="100%" class="ModuleEditInput">
													<tr>
														<td width="100" align="left"><g:label text="<%=ModuleDomain.moduleCode_full %>" allowBlank="false" /></td>
														<td width="230" align="left"><g:text property="moduleCode" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td width="100" align="left"><g:label text="SEQ" allowBlank="false" /></td>
														<td><g:text property="clientType" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td width="100"><g:label text="<%=ModuleDomain.moduleDescKey_full %>" allowBlank="false" /></td>
														<td><g:text property="moduleDescKey" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
												</table>							
											</form>
											<!--按钮 --> 
											<g:button styleId="btn_ModuleSave" styleClass="new" type="button" text="button.save" onclick="saveModuleAction('add');" /> 
											<!--按钮 --> 
											<g:button styleId="btn_Delete" styleClass="cancel" type="button" text="button.delete" onclick="moduleAction('dele');" />
										</div>
									</div>
									<html:javascript formName="moduleEditForm" /> 
									<!-- 编辑区域 -->
								</div>
								<!---------------------- TAB 1 end----------------------> 
								
								<!---------------------- TAB 2 begin---------------------->
								<div id="TabBox2" class="TabBoxHidden"><!--信息显示模块-->
								<div class="ModuleEditGrid">
								<div class="ModuleEditGridBorder"><!-- 表格内容开始 -->
								<div id="menuGroupTitleGrid"></div>
								<!-- 表格内容 结束 --></div>
								<div class="ModuleEditButton"><g:button styleId="btnGroupTitleNew" styleClass="new" type="button" text="<%= CommonMessageDomain.BUTTON_NEW %>" /> <g:button styleId="btnGroupTitleCancel" styleClass="calcel" type="button" text="<%=CommonMessageDomain.BUTTON_CANCEL  %>" /> <g:button styleId="btnGroupTitleDelete" styleClass="delete" type="button" text="<%= CommonMessageDomain.BUTTON_DELETE %>" /></div>
								</div>
								<!--信息显示模块--> <!-- 编辑区域 -->
								<div class="ModuleEdit">
								<div class="ModuleEditBorder">
								<form id="editGroupForm" onsubmit="return false;"><input type="hidden" id="menuGroupHiddenId" name="menuGroupId"> <input type="hidden" id="recordVersionHidden" name="recordVersion"> <input type="hidden" id="hiddenPareModuleId" name="moduleId">
								<div class="Line"></div>
								<table width="100%" class="ModuleEditInput">
									<tr>
										<td width="100" align="left"><g:label text="<%=MenuGroupDomain.menuGrpSeq_full %>" allowBlank="false" /></td>
										<td width="230" align="left"><g:text property="menuGrpSeq" isNumberText="true" style="width:200px" /></td>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<td width="100" align="left"><g:label text="<%=MenuGroupDomain.menuGrpDescKey_full %>" allowBlank="false" /></td>
										<td><g:text property="menuGrpDescKey" style="width:200px" /></td>
										<td>&nbsp;</td>
									</tr>
								</table>
								</form>
								<!--按钮 --> 
								<g:button styleId="btnGroupSave" styleClass="new" type="button" text="button.save" onclick="saveMenuGroupAction('add');" /> 
								<!--按钮 --> 
								<g:button styleId="btnGroupDelete" styleClass="cancel" type="button" text="button.delete" onclick="menuGroupAction('dele');" /></div>
								</div>
								<html:javascript formName="editGroupForm" /> 
								<!-- 编辑区域 -->
								</div>
								<!---------------------- TAB 2 end----------------------> 
								
								<!---------------------- TAB 3 begin---------------------->
								<div id="TabBox3" class="TabBoxHidden">
									<!--信息显示模块-->
									<div class="ModuleEditGrid">
										<div class="ModuleEditGridBorder">
											<!-- 表格内容开始 -->
											<div id="menuItemTitleGrid"></div>
											<!-- 表格内容 结束 -->
										</div>
										<div class="ModuleEditButton">
											<g:button styleId="btnItemTitleNew" styleClass="new" type="button" text="<%= CommonMessageDomain.BUTTON_NEW %>" /> 
											<g:button styleId="btnItemTitleCancel" styleClass="calcel" type="button" text="<%=CommonMessageDomain.BUTTON_CANCEL  %>" /> 
											<g:button styleId="btnItemTitleDelete" styleClass="delete" type="button" text="<%= CommonMessageDomain.BUTTON_DELETE %>" />
										</div>
									</div>
									<!--信息显示模块--> 
									
									<!-- 编辑区域 -->
									<div class="ModuleEdit">
										<div class="ModuleEditBorder">
											<form id="menuItemForm" onsubmit="return false;">
												<input type="hidden" id="menuItemHiddenId" name="menuItemId"> 
												<input type="hidden" id="recordVersionHidden" name="recordVersion"> 
												<input type="hidden" id="hiddenPareMenuGroupId" name="menuGroupId">
												<div class="Line"></div>
												<table width="100%" class="ModuleEditInput">
													<tr>
														<td width="100" align="left"><g:label text="<%=MenuItemDomain.viewId_full %>" allowBlank="false" /></td>
														<td width="230" align="left"><g:text property="viewId" style="width:200px" /></td>
														<td>&nbsp;</td>
										
														<td><g:label text="<%=MenuItemDomain.menuItemUrl_full %>" allowBlank="false" /></td>
														<td><g:text property="menuItemUrl" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td><g:label text="<%=MenuItemDomain.menuItemDescKey_full %>" allowBlank="false" /></td>
														<td><g:text property="menuItemDescKey" style="width:200px" /></td>
														<td>&nbsp;</td>
														<td><g:label text="<%=MenuItemDomain.menuItemSeq_full %>" allowBlank="false" /></td>
														<td><g:text property="menuItemSeq" isNumberText="true" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td><g:label text="<%=MenuItemDomain.className_full %>" /></td>
														<td>
															<k:select property="className" style="width:200px" >
																<k:option value="nav_left_8_1" text="nav_left_8_1"/>
																<k:option value="nav_left_8_2" text="nav_left_8_2"/>
																<k:option value="nav_left_8_3" text="nav_left_8_3"/>
																<k:option value="nav_left_8_4" text="nav_left_8_4"/>
																<k:option value="nav_left_8_5" text="nav_left_8_5"/>
																<k:option value="nav_left_8_6" text="nav_left_8_6"/>
<%-- 																<k:option value="nav_left_8_7" text="nav_left_8_7"/> --%>
<%-- 																<k:option value="nav_left_8_8" text="nav_left_8_8"/> --%>
<%-- 																<k:option value="nav_left_8_9" text="nav_left_8_9"/> --%>
																<k:option value="nav_left_8_10" text="nav_left_8_10"/>
																<k:option value="nav_left_8_11" text="nav_left_8_11"/>
<%-- 																<k:option value="nav_left_8_12" text="nav_left_8_12"/> --%>
																<k:option value="nav_left_8_13" text="nav_left_8_13"/>
																<k:option value="nav_left_8_14" text="nav_left_8_14"/>
																<k:option value="nav_left_8_15" text="nav_left_8_15"/>
															</k:select>
														</td>
														<td>&nbsp;</td>
													</tr>
												</table>
												<table width="100%" class="ModuleEditInput">
													<tr>
														<td>
															<%-- 
															<g:label text="<%=MenuItemDomain.showInMenu_full %>" /> <g:checkbox property="showInMenu" value="true"></g:checkbox> &nbsp; <g:label text="<%=MenuItemDomain.showInConsole_full %>" /> <g:checkbox property="showInConsole" value="true"></g:checkbox> &nbsp; <g:label text="<%=MenuItemDomain.isDialog_full %>" /> <g:checkbox property="isDialog" value="true"></g:checkbox> &nbsp; <g:label text="是否新功能" /> <g:checkbox property="isNewFun" value="true"></g:checkbox> &nbsp;
															--%>
															<g:label text="<%=MenuItemDomain.showInConsole_full %>" /> <g:checkbox property="showInConsole" value="true" ></g:checkbox>
														</td>
													</tr>
												</table>	
											</form>
											<!--按钮 --> 
											<g:button styleId="btnSave" styleClass="new" type="button" text="button.save" onclick="saveMenuItemAction('add');" /> 
											<!--按钮 --> 
											<g:button styleId="btnDelete" styleClass="cancel" type="button" text="button.delete" onclick="menuItemAction('dele');" />
										</div>
									</div>
									<html:javascript formName="menuItemForm" /> 
									<!-- 编辑区域 -->
								</div>
								<!---------------------- TAB 3 end----------------------> 
								
								<!---------------------- TAB 4 begin---------------------->
								<div id="TabBox4" class="TabBoxHidden">
									<!-- 编辑区域 -->
									<div class="ModuleEdit">
										<div class="ModuleEditBorder">
											<form id="editViewButtonForm" onsubmit="return false;">
												<input type="hidden" id=viewButtonHiddenId " name="viewButtonId"> 
												<input type="hidden" id="recordVersionHidden" name="recordVersion"> 
												<input type="hidden" id="hiddenPareMenuItemId" name="menuItemId">
												<div class="Line"></div>
												<table width="100%" class="ModuleEditInput">
													<tr>
														<td width="100" align="left"><g:label text="<%=ViewButtonDomain.buttonUrl_full %>" allowBlank="false" /></td>
														<td width="230" align="left"><g:text property="buttonUrl" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td><g:label text="<%=ViewButtonDomain.btnName_full %>" allowBlank="false" /></td>
														<td><g:text property="btnName" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td><g:label text="<%=ViewButtonDomain.btnTitleKey_full %>" allowBlank="false" /></td>
														<td><g:text property="btnTitleKey" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td><g:label text="<%=ViewButtonDomain.btnMsgKey_full %>" allowBlank="false" /></td>
														<td><g:text property="btnMsgKey" style="width:200px" /></td>
														<td>&nbsp;</td>
													</tr>
												</table>
											</form>
											<!--按钮 --> 
											<g:button styleId="btnSave" styleClass="new" type="button" text="button.save" onclick="saveViewButtonAction('add');" /> 
											<!--按钮 --> 
											<g:button styleId="btnDelete" styleClass="cancel" type="button" text="button.delete" onclick="viewButtonAction('dele');" />
										</div>
									</div>
									<html:javascript formName="editViewButtonForm" /> 
									<!-- 编辑区域 -->
								</div>
								<!------------------------------- TAB 4 end---------------------->
								
							</div>
						</div>
					</div>
				</td>
			</tr>
		</table>
	
		<ge:body>
			<!----- grid ModuleTitle start ---------->
			<ge:window id="winModuleTitle">
				<ge:grid.baseGrid 
					queryObjectName="com.wef.system.entity.ModuleTitle" 
					dwrService="ModuleTitleService" 
					dwrMethod="removeModuleTitles" 
					cancelBtnId="btnModuleCancel" 
					newBtnId="btnModuleNew" 
					deleteBtnId="btnModuleDelete" 
					loadMask="true" 
					id="moduleTitleGrid" 
					bodyStyle="width:100%" 
					autoWidth="true" 
					height="120" 
					width="460" 
					readerFields="moduleTitleId,moduleId,title,lang" 
					showExportToExcel="false" 
					showExportAllToExcel="false" 
					renderTo="moduleTitleGrid">
					<ge:grid.columnModel>
						<ge:grid.rowNumberer />
						<ge:grid.column header="moduleTitleId" dataIndex="moduleTitleId" hidden="true" />
						<ge:grid.column header="moduleId" dataIndex="moduleId" hidden="true" />
						<ge:grid.column header="语言" dataIndex="lang" width="120">
							<ge:form.comboBox name="lang" fieldLabel="lang">
								<ge:form.option value="zh_CN">简体中文</ge:form.option>
								<ge:form.option value="en">英语</ge:form.option>
								<ge:form.option value="default">默认</ge:form.option>
							</ge:form.comboBox>
						</ge:grid.column>
						<ge:grid.column header="标题" dataIndex="title" width="200">
							<ge:form.textField allowBlank="false" />
						</ge:grid.column>
					</ge:grid.columnModel>
				</ge:grid.baseGrid>
			</ge:window>
			<!----- grid ModuleTitle end ---------->
	
			<!----- grid MenuGroupTitle start ---------->
			<ge:window id="winMenuGroupTitle">
				<ge:grid.baseGrid 
					queryObjectName="com.wef.system.entity.MenuGroupTitle" 
					dwrService="MenuGroupTitleService" 
					dwrMethod="removeMenuGroupTitles" 
					cancelBtnId="btnGroupTitleCancel" 
					newBtnId="btnGroupTitleNew" 
					deleteBtnId="btnGroupTitleDelete" 
					loadMask="true" 
					id="menuGroupTitleGrid" 
					bodyStyle="width:100%" 
					autoWidth="true" 
					height="120" 
					width="460" 
					readerFields="menuGroupTitleId,menuGroupId,title,lang" 
					showExportToExcel="false" 
					showExportAllToExcel="false" 
					renderTo="menuGroupTitleGrid">
					<ge:grid.columnModel>
						<ge:grid.rowNumberer />
						<ge:grid.column header="menuGroupTitleId" dataIndex="menuGroupTitleId" hidden="true" />
						<ge:grid.column header="menuGroupId" dataIndex="menuGroupId" hidden="true" />
						<ge:grid.column header="语言" dataIndex="lang" width="120">
							<ge:form.comboBox name="lang" fieldLabel="lang">
								<ge:form.option value="zh_CN">简体中文</ge:form.option>
								<ge:form.option value="en">英语</ge:form.option>
								<ge:form.option value="default">默认</ge:form.option>
							</ge:form.comboBox>
						</ge:grid.column>
						<ge:grid.column header="标题" dataIndex="title" width="200">
							<ge:form.textField allowBlank="false" />
						</ge:grid.column>
					</ge:grid.columnModel>
				</ge:grid.baseGrid>
			</ge:window>
			<!----- grid MenuGroupTitle end ---------->
	
			<!----- grid MenuItemTitle start ---------->
			<ge:window id="winMenuGroupTitle">
				<ge:grid.baseGrid 
					queryObjectName="com.wef.system.entity.MenuItemTitle" 
					dwrService="MenuItemTitleService" 
					dwrMethod="deleteMenuItemTitles" 
					cancelBtnId="btnItemTitleCancel" 
					newBtnId="btnItemTitleNew" 
					deleteBtnId="btnItemTitleDelete" 
					loadMask="true" 
					id="menuItemTitleGrid" 
					bodyStyle="width:100%" 
					autoWidth="true" 
					height="100" 
					width="460" 
					readerFields="menuItemTitleId,menuItemId,title,lang" 
					showExportToExcel="false" 
					showExportAllToExcel="false" 
					renderTo="menuItemTitleGrid">
					<ge:grid.columnModel>
						<ge:grid.rowNumberer />
						<ge:grid.column header="menuItemTitleId" dataIndex="menuItemTitleId" hidden="true" />
						<ge:grid.column header="menuItemId" dataIndex="menuItemId" hidden="true" />
						<ge:grid.column header="语言" dataIndex="lang" width="120">
							<ge:form.comboBox name="lang" fieldLabel="lang">
								<ge:form.option value="zh_CN">简体中文</ge:form.option>
								<ge:form.option value="en">英语</ge:form.option>
								<ge:form.option value="default">默认</ge:form.option>
							</ge:form.comboBox>
						</ge:grid.column>
						<ge:grid.column header="标题" dataIndex="title" width="200">
							<ge:form.textField allowBlank="false" />
						</ge:grid.column>
					</ge:grid.columnModel>
				</ge:grid.baseGrid>
			</ge:window>
			<!----- grid MenuItemTitle end ---------->
		</ge:body>
	</body>
</html>